/*
 *  车牌管理
 *
 */
import { update } from 'lodash';
import { getRequest, postRequest,request,getDownload } from '/src/lib/axios';

export const plateNumberApi = {
  /**
   * 列表 
   */
  getList: (param) => {
    return postRequest('/system/car_details/list', param);
  },

  /**
   * 新增
   */
  add: (param) => {
    return postRequest('/system/car_details/add', param);
  },
//   更新
  update:(param)=>{
    return request({
        method:'put',
        url:'/system/car_details/edit',
        data:param
      });
  },
//   删除
delete:(id)=>{
    return request({
        method:'delete',
        url:`/system/car_details/delete/${id}`
      });
},
// 上传
import:(formData)=>{
    return postRequest('/system/car_details/upload', formData);
},
// 导出数据excel
exportExcel: (param) => {
    return postDownload('/oa/enterprise/exportExcel', param);
},
  // 导出 
  exportPlateNumber : (param) =>{
    return getDownload('/system/car_details/all', param);
  },
  // 下载模板
  downloadTemlate:(param)=>{
    return getDownload('/system/car_details/template/downLoad', param);
  }
  
};
